﻿<Window 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="PSE.Framework.Versions.ApplicationBase.VersionsWindow"
	Width="610" Height="494" 
	Background="{DynamicResource ControlWindowDefaultBackground}" 
    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
    xmlns:Controls="clr-namespace:PSE.Framework.UI.Controls.SmartClient;assembly=PSE.Framework.UI.Controls" 
    WindowStartupLocation="CenterScreen" 
    ResizeMode="NoResize"
    ContentRendered="Window_ContentRendered">
    <Grid x:Name="LayoutRoot">
        <Grid Margin="14,4,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" Width="202.92" Height="58.842" Background="{DynamicResource BvmfLogo}"></Grid>
        
        <ListView Background="{DynamicResource BrushListViewBackground}" 
                  x:Name="lvwVersions" 
                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                  ScrollViewer.HorizontalScrollBarVisibility="Auto" 
                  ItemsSource="{Binding Versions}" 
                  Style="{DynamicResource ControlListViewBase}" 
                  FontSize="12" 
                  FontWeight="Normal" 
                  IsSynchronizedWithCurrentItem="True" 
                  Margin="12,78,12,52">

            <ListView.View>
                <GridView ColumnHeaderContainerStyle="{DynamicResource ListViewColumnBackground}">
                    <GridViewColumn Header="{DynamicResource Infra.Controls.Label.ModuleName}" Width="170" DisplayMemberBinding="{Binding ModuleName}"/>
                    <GridViewColumn Header="{DynamicResource Infra.Controls.Label.Client}"     Width="100" DisplayMemberBinding="{Binding Client}"/>
                    <GridViewColumn Header="{DynamicResource Infra.Controls.Label.Server}"     Width="100" DisplayMemberBinding="{Binding Server}"/>
                    <GridViewColumn Header="{DynamicResource Infra.Controls.Label.ServerUrl}"  Width="140" DisplayMemberBinding="{Binding ServerUrl}"/>
                </GridView>
            </ListView.View>
        </ListView>

        <Controls:Label x:Name="lblLoading" 
                        Content="{DynamicResource Infra.Controls.Label.Loading}" 
                        Margin="182.46,0,185.54,12" Height="21" VerticalAlignment="Bottom" />
        <Controls:Button x:Name="btnCancelar" 
                         Click="btnCancelar_Click" 
                         IsCancel="True" 
                         CausesValidation="False" 
                         Margin="0,0,11,15" 
                         Content="{DynamicResource Infra.Controls.Label.Ok}" 
                         VerticalAlignment="Bottom" 
                         Height="21" 
                         Width="100" 
                         HorizontalAlignment="Right"/>

        <Controls:Button x:Name="btnAtualizar"
                         Click="btnAtualizar_Click"
                         Margin="130,0,0,15"
                         Content="{DynamicResource Infra.Controls.Label.Atualizar}"
                         VerticalAlignment="Bottom"
                         Height="21"
                         Width="100"
                         HorizontalAlignment="Left"/>
        
        <Controls:Button x:Name="btnRelatorio" 
                         Click="btnRelatorio_Click" 
                         Margin="12,0,0,15" 
                         Content="{DynamicResource Infra.Controls.Label.Relatorio}" 
                         VerticalAlignment="Bottom" 
                         Height="21" 
                         Width="100" 
                         HorizontalAlignment="Left"/>

    </Grid>
</Window>
